# include <iostream>
using namespace std;
int main (){
	int weekday=0;
	int day=1;
	int x;
	cout <<"Enter the code number for the day of the week for January 1 as follows" <<endl;
	cout <<"0-Sun, 1-Mon, 2-Tue, 3-Wed, 4-Thu, 5-Fri, 6-Sat" <<endl;
	cout <<"Enter day code here" <<endl;
	cin >>x;
	system("pause");
	
	cout <<"*** Calender***" <<endl;
	cout <<"" <<endl;
	cout <<"January" <<endl;
	cout <<"" <<endl;
	
	while  (weekday<7){
		if (weekday<x){
			cout <<"\t";
			weekday ++;
		} else {
			cout <<day<<"\t";
			day++;
			weekday ++;
		}
	}
}